package com.ethink.warehouse.api.info;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存拆卸详情记录 INFO实体
 *
 * @author default
 * @date 2022-12-07
 */
@Data
public class MateInventoryCxDetailLogInfo {

    @Schema(description ="主键")
    private Long id;

    @Schema(description ="操作流水号")
    private String orderNo;

    @Schema(description ="原库存ID")
    private Long beforeMateInventoryId;

    @Schema(description ="调整后库存ID")
    private Long afterMateInventoryId;

    @Schema(description ="拆后商品SKU")
    private String afterMateSku;

    @Schema(description ="拆后商品名称")
    private String afterMateSkuName;

    @Schema(description ="被拆数量")
    private Integer beforeQty;

    @Schema(description ="拆成几份")
    private Integer chaiQty;

    @Schema(description ="数据删除标志(0-正常,1-删除)")
    private Integer isDeleted;

    @Schema(description ="数据创建时间戳")
    private Date createTime;

    @Schema(description ="数据更新时间戳")
    private Date updateTime;

    @Schema(description ="创建人")
    private String createUser;

    @Schema(description ="修改人")
    private String updateUser;

    @Schema(description ="备注信息")
    private String remark;


    @Schema(description ="被拆商品编码")
    private String beforeMateSku;
    @Schema(description ="被拆商品名称")
    private String beforeMateSkuName;
    @Schema(description ="被拆商品成本价")
    private BigDecimal beforeCostPrice;
    @Schema(description ="渠道")
    private String saleSubChannel;
    @Schema(description ="生产批次")
    private String produceCode;
    @Schema(description ="采购批次")
    private String purchaseCode;
    @Schema(description ="枚举 库存类型:1-正品(zp)|2-瑕疵(cc)")
    private Integer inventoryType;
    @Schema(description ="商品生产日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date productDate;
    @Schema(description ="商品过期日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date expireDate;

}
